Helix Administrator - Pending Changes

未生效的配置更改

// BEGININC // ENDINC var tab = '

|  | TABTEXT |  |

'; var aTabTitles = new Array() aTabTitles[ "18" ] = "端口"; aTabTitles[ "11" ] = "访问和错误日志"; aTabTitles[ "40" ] = "自定义日志"; aTabTitles[ "8" ] = "HTTP分发"; aTabTitles[ "4" ] = "IP绑定"; aTabTitles[ "16" ] = "MIME类型"; aTabTitles[ "10" ] = "配置加载点"; aTabTitles[ "39" ] = "内容缓存"; aTabTitles[ "37" ] = "URL别名"; aTabTitles[ "30" ] = "代理路由"; aTabTitles[ "2" ] = "连接控制"; aTabTitles[ "3" ] = "带宽管理"; aTabTitles[ "24" ] = "用户/用户组 名"; aTabTitles[ "9" ] = "ISP 集群"; aTabTitles[ "41" ] = "RealNetworks 编码器"; aTabTitles[ "5" ] = "比G2更旧的编码器"; aTabTitles[ "6" ] = "直播存档"; aTabTitles[ "33" ] = "冗余广播"; aTabTitles[ "36" ] = "QT和RTP 编码器"; aTabTitles[ "38" ] = "Windows Media 编码器"; aTabTitles[ "34" ] = "传送服务器"; aTabTitles[ "35" ] = "接受服务器"; aTabTitles[ "45" ] = "分发"; aTabTitles[ "12" ] = "后台多播"; aTabTitles[ "14" ] = "可扩展多播"; aTabTitles[ "13" ] = "会话声明"; aTabTitles[ "17" ] = "缓存目录"; aTabTitles[ "19" ] = "缓存"; aTabTitles[ "20" ] = "访问控制"; aTabTitles[ "23" ] = "用户认证"; aTabTitles[ "22" ] = "商业应用"; aTabTitles[ "21" ] = "用户数据库"; aTabTitles[ "28" ] = "广告超时"; aTabTitles[ "1" ] = "广告服务器"; aTabTitles[ "25" ] = "广告SMIL生成器"; aTabTitles[ "26" ] = "查看代码"; aTabTitles[ "7" ] = "浏览内容"; aTabTitles[ "31" ] = "许可证分享"; aTabTitles[ "46" ] = "冗余服务器"; aTabTitles[ "47" ] = "播放器安装"; aTabTitles[ "48" ] = "播放器更新"; aTabTitles[ "29" ] = "欢迎"; aTabTitles[ "42" ] = "许可证监控"; aTabTitles[ "43" ] = "代理监控"; aTabTitles[ "44" ] = "媒体演示"; var fChanges = ( RMAGetFirstProperty( "diffconfig.config" ) != null ); RMAOutput( ( (!fChanges) ? '没有任何更改.' : '以下配置的修改尚未生效.它们将在服务器重新启动以后生效' + '请检查并确认下面列表中的改动,然后重新启动服务器.') );

if ( fChanges ) { // loop through the image array (its sorted by toc order) for ( var contextID in aTabTitles ) { if ( RMAGetFirstProperty( "contextconfig." + contextID + ".config" ) ) { emitChanges( contextID ); } } } var rowCounter = 1; function emitChanges ( contextID ) { RMAOutput( tab.replace( /TABTEXT/, aTabTitles[ contextID ] ) + '

' + '
配置参数 | 生效行为
' ); // enumerate the changes rowCounter = 1; enumProps( "contextconfig." + contextID + ".config", enumFuncChanges, 0 ); RMAOutput( "

" ); } // emitChanges () function enumFuncChanges ( prop, propValue, curDepth ) { // strip off the "contextconfig..config" prop = prop.rightProp( -2 ); if ( ! prop ) return ; var displayValue = ""; //is this property a list ? if ( RMAGetFirstProperty( "diffconfig." + prop ) ) { // is it a new list? if ( (!RMAGetFirstProperty( prop )) && RMAGetFirstProperty( "fileconfig." + prop ) ) { displayValue = "建立新的列表"; } else { // else skip it return ; } } else { // is this property a deleted list? if ( RMAGetFirstProperty( prop ) && (!RMAGetFirstProperty( "fileconfig." + prop )) ) { displayValue = "删除列表"; } else { var newValue = RMAGetPropertyValue( "fileconfig." + prop ); var oldValue = RMAGetPropertyValue( prop ); if ( prop.bSearch( /password/i ) ) { if ( oldValue ) oldValue = '????????' ; if ( newValue ) newValue = '********' ; } if ( ( oldValue == null ) && ( newValue == null ) ) { displayValue = "删除"; } else if ( oldValue == null ) { displayValue = "设置为".span( "grey" ) + newValue; } else { if ( newValue == null ) newValue = ""; displayValue = "从 ".span( "grey" ) + oldValue + " 更改为".span( "grey" ) + newValue; } } } var className = ((rowCounter++ % 2) ? 'odd' : 'even'); var tdTag = ''; RMAOutput( '
' + tdTag + prop.rightProp( -1 ) + '
' + tdTag + displayValue + '' ); } // enumFuncChanges ()